package com.ztgf.user.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.shopping.models.bo.shop.ShopUserRelationBO;
import com.ztgf.user.models.dto.UserInfoDTO;
import com.ztgf.user.models.vo.UserInfoRoleRelationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户基本信息映射
 *
 * @author zhanghualang
 * @Date 2020-05-28 17:43:46
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfoDTO> {
    /**
     * 根据分页和名称，联表查询店员信息
     * @param page
     * @param bo
     * @return
     */
    List<UserInfoRoleRelationVO> queryUserPageList(Page<UserInfoRoleRelationVO> page, @Param("item") ShopUserRelationBO bo);

    UserInfoDTO selectByShopId(@Param("shopId")Long shopId);
}
